package com.campus.help.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class UserRegisterRequest {
    
    @NotBlank(message = "学号不能为空")
    @Pattern(regexp = "^[0-9]{8,12}$", message = "学号格式不正确")
    private String studentId;
    
    @NotBlank(message = "密码不能为空")
    private String password;
    
    private String name;
    private String phone;
    private String email;
}